import {requestService} from "../../../utils/request";

// 根据ID查询驱动
export function getDriverById(driverId) {
    const query = {
        driverId
    }
    return requestService({
        url: '/xiaozhen-system/tcpDiver/getDriverById',
        method: 'get',
        params: query
    })
}

// 新增驱动
export function addTcpDriver(data) {
    return requestService({
        url: '/xiaozhen-system/tcpDiver/add',
        method: 'post',
        data: data
    })
}

// 修改驱动
export function updateTcpDriver(data) {
    return requestService({
        url: '/xiaozhen-system/tcpDiver/update',
        method: 'put',
        data: data
    })
}
